<?php
/**
 * dbfront
 * (c) 2010-2013 Stephen Adkins <spadkins@gmail.com>
 * This software began development in 2010.
 * It is based on code dating from 1999.
 *
 * License: GPL 2.0
 * The contents of this file may be used under the terms of
 * the GNU General Public License Version 2 or later (the "GPL").
 *
 * Software distributed under the License is distributed on an "AS IS" basis,
 * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
 * for the specific language governing rights and limitations under the
 * License.
 * */
namespace App;
class SessionObject extends Service {
    public $attribs = Array();
    public function __toString() {
        $str = "[$this->type($this->name) :class=$this->class";
        foreach ($this->attribs as $key => $value) {
            if (is_scalar($value)) {
                $str .= ":$key=$value";
            }
        }
        $str .= ']';
        return($str);
    }
    public function content() {
        return($this->__toString());
    }
}
